<div class="title">Vào số liệu báo cáo phân loại</div>
<div id="formBaoCao">
	<div id="generalInfo">
	<?php echo $this->Form->create('PhanLoaiHoso', array('inputDefaults' => array('error' => false),'id'=>'XuLy')); ?>
	<table width="100%" cellspacing="0">
		<tr>
			<td>STT</td>
			<td>Tên chỉ tiêu</td>
			<td>Mã quốc gia</td>
			<td>Số liệu</td>
		</tr>
		<?php foreach ($chiTieus as $key => $chiTieu):?>
		<tr>
			<td align="center"><?php echo $key + 1;?></td>
			<td><?php echo $chiTieu['pl']['ten'];?></td>
			<td align="center"><?php echo $chiTieu['pl']['ma'];?></td>
			<td align="center">
				<input type="text" style="width: 50px;" name="data[PhanLoaiHoso][<?php echo $chiTieu['pl']['id'];?>]" value="<?php echo $chiTieu['pl_hs']['so_lieu'];?>"/>
			</td>
		</tr>
		<?php endforeach; ?>
		<?php if (empty($chiTieus)):?>
		<tr>
			<td colspan="10" align="center">Hiện chưa có chỉ tiêu thống kê nào</td>
		</tr>
		<?php endif; ?>
	</table>
	<hr style="color: #1F7BC3;" />
	<div id="buttons" style="text-align: center;">
		<button class="button blue" id="duyet">Lưu</button>
		<?php echo $this->Html->link('Thoát',array('action' => 'xuly', $selectedHoso), array('id' => 'back', 'class' => 'button blue'));?>
		<div class="clear"></div>
		<input type="hidden" name="data[PhanLoaiHoso][ketquahanhchinh_id]" value="<?php echo $ketquahanhchinh;?>"/>
		<input type="hidden" name="data[PhanLoaiHoso][hoso_id]" value="<?php echo $selectedHoso;?>"/>
	</div>
	</div>
	<?php echo $this->Form->end();?>
</div>
<script type="text/javascript">
	var form = $("#XuLy");
	$(document).ready(function (){
		$("#duyet").click(function(){
			form.submit();
		});
		$("input.datetime").datepicker({dateFormat:"dd/mm/yy",changeYear: true });
		$("input.datetime").attr("readonly","readonly");
	});
</script>